﻿<!DOCTYPE html>
<html><head><meta charset="UTF-8">
<title></title>

<script>
	onload = function(){
		var start = new Date().getTime();
		var fragment = document.createDocumentFragment();
		
		for(var i=0; i<50000; i++){
			var p = document.createElement("p");
			p.innerText = "aaaaaaa";
			fragment.appendChild(p);
			//document.body.appendChild(p);
		}
		
		document.body.appendChild(fragment);
		
		var stop = new Date().getTime();
		console.log(stop-start);
	}
</script>
</head>
<body>
	
</body>
</html>